﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace OddUserManager.Model
{
    public class OddUser : Entity
    {

        public OddUser() {
            OddList = new List<Odd>();
        }
        public string Account { get; set; }

        public string NickName { get; set; }

        public int SiteId { get; set; }

        [DapperIgnore]
        public Site Site { get; set; }

        public int State { get; set; }

        public string Remark { get; set; }
        public decimal AccountBalance { get; set; }

        [DapperIgnore]
        public List<Odd> OddList { get; set; }

        public int AccountType { get; set; }

        public int SiteSort { get; set; }

        public int SortIndex { get; set; }

        /// <summary>
        /// 站点ID集合，查询时使用
        /// </summary>
        [DapperIgnore]
        public string SiteIds { get; set; }

        /// <summary>
        /// 创建用户ID
        /// </summary>
        public int CreateAppUserId { get; set; }

        /// <summary>
        /// 创建用户名
        /// </summary>
        [DapperIgnore]
        public string CreateAppUserName { get; set; }

        /// <summary>
        /// 标签创建时间
        /// </summary>
        [JsonConverter(typeof(LongDateTimeConvert))]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 修改用户ID
        /// </summary>
        public int ModAppUserId { get; set; }

        /// <summary>
        /// 修改用户名
        /// </summary>
        [DapperIgnore]
        public string ModAppUserName { get; set; }

        /// <summary>
        /// 标签修改时间
        /// </summary>
        [JsonConverter(typeof(LongDateTimeConvert))]
        public DateTime ModDate { get; set; }

    }
}

